package ro.zalum.scjp6.objective1_1;

import java.io.IOException;

import ro.zalum.scjp6.objective1_1.food.Fruit;
import ro.zalum.scjp6.objective1_1.food.Plant;

public class OverrideSub extends Override{
	
	public void test(IOException e){
		int x;
		Apple y[] = new Apple[2];
		Fruit f = new Fruit();
		Plant p = (Plant) f;
		Plant plannts[] = y;
		String s = "(String)y";
		s.toUpperCase();
		if(false){
			x = 1;
		}else{
			//x = 2;
		}
		
//		System.out.println(x);
		System.out.println(y[0]);
	}

}
